import request from "../utils/request.js"

export function personalAlertlist(data) {
	return request({
		url: "/common/personalAlert/list",
		data
	})
}


export function getEntranceList(data) {
	return request({
		url: "/device/getEntranceList",
		data
	})
}

export function uploadFace(data) {
	return request({
		url: "/device/entrance/uploadFace",
		method: 'post',
		data
	})
}

export function personalAlert(data) {
	return request({
		url: "/common/personalAlert",
		method: 'post',
		data
	})
}
export function unLock(data) {
	return request({
		url: "/common/unLock",
		method: 'post',
		data
	})
}
//申请成为房东/已拒绝修改
export function insetLandlord(data) {
	return request({
		url: "/tenant/insetLandlord",
		method: 'post',
		data
	})
}
//申请详情
export function landlordDetail(data) {
	return request({
		url: "/tenant/landlordDetail",
		data
	})
}
//租户上传信息接口
export function updateTenant(data) {
	return request({
		url: "/tenant/updateTenant",
		method: 'post',
		data
	})
}
//签约 房间详情页
export function getContract(data) {
	return request({
		url: "/tenant/contract",
		data
	})
}
//签约
export function contract(data) {
	return request({
		url: "/tenant/contract",
		method: 'post',
		data
	})
}

//当前登录租户详情
export function getTenantDetail(data) {
	return request({
		url: "/tenant/getTenantDetail",
		data
	})
}
//轮播图
export function bannerlist(data) {
	return request({
		url: "/common/banner/list",
		data
	})
}
//根据身份证号+姓名来搜索租户
export function getTenantUser(data) {
	return request({
		url: "/tenant/getTenantUser",
		data
	})
}
//部门数据格式
export function deptNodes(data) {
	return request({
		url: "/common/dept/deptNodes",
		data
	})
}
//部门数据格式
export function deptList(data) {
	return request({
		url: "/common/dept",
		data
	})
}

//修改头像跟昵称
export function updateBase(data) {
	return request({
		url: "/login/updateBase",
		method: 'post',
		data
	})
}
//用户信息
export function loginUser(data) {
	return request({
		url: "/login/user",
		data
	})
}
//登录用户房屋加房间联动接口
export function houseRoom(data) {
	return request({
		url: "/common/house-room",
		data
	})
}

//到访登记
export function visitorAdd(data) {
	return request({
		url: "/visitor/add",
		method: 'post',
		data
	})
}
//获取未读消息数量（轮询）
export function msgcount(data) {
	return request({
		url: "/msg/count",
		data
	})
}
//消息列表
export function msglist(data) {
	return request({
		url: "/msg/page-list",
		data
	})
}
//告警消息详情
export function alarmdetail(data) {
	return request({
		url: "/alarm/detail",
		data
	})
}
//处理告警
export function alarmhandle(data) {
	return request({
		url: "/alarm/handle",
		method: 'post',
		data
	})
}

//展示表单
export function getTenantIsShow() {
	return request({
		url: "/tenant/getTenantIsShow",
		method: 'post',
	})
}